﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chinaer.IDao;

namespace Chinaer.Dao
{
    public class MenuDetailDAO:IMenuDeatilDAO
    {
        IMenuDeatilDAO menuDetailDAO = new Chinaer.Dao.EF.MenuDetailDAO();
        public bool EnableTrack
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public IList<Model.Entities.Model_MenuDetail> Query(string sql, int pageIndex, out int recordCount, int pageSize, params System.Data.SqlClient.SqlParameter[] sqlParams)
        {
            return menuDetailDAO.Query(sql, pageIndex, out recordCount, pageSize, sqlParams);
        }

        public Model.Entities.Model_MenuDetail GetByID(string id)
        {
            return menuDetailDAO.GetByID(id);
        }

        public bool Exists(string id)
        {
            return menuDetailDAO.Exists(id);
        }

        public bool Add(Model.Entities.Model_MenuDetail entity)
        {
            return menuDetailDAO.Add(entity);
        }

        public bool Update(Model.Entities.Model_MenuDetail entity)
        {
            return menuDetailDAO.Update(entity);
        }

        public bool Delete(Model.Entities.Model_MenuDetail entity)
        {
            return menuDetailDAO.Delete(entity);
        }

        public bool Delete(string id)
        {
            return menuDetailDAO.Delete(id);
        }

        public int DeleteByIDs(IList<string> listID)
        {
            return menuDetailDAO.DeleteByIDs(listID);
        }

        public List<Model.Entities.Model_MenuDetail> GetMenuDetailByMenuCategoryID(string menuCategoryID)
        {
            return menuDetailDAO.GetMenuDetailByMenuCategoryID(menuCategoryID);
        }


        public List<Model.Entities.Model_MenuDetail> GetMenuDetailByDianPuID(string dianPuID)
        {
            return menuDetailDAO.GetMenuDetailByDianPuID(dianPuID);
        }


        public List<Model.Entities.Model_MenuDetail> GetAllMenuDetail()
        {
            return menuDetailDAO.GetAllMenuDetail();
        }
    }
}
